pattern 000001 177777
